package com.dreem.composite;

/**
 * @program: DesignParrtern
 * @description: 系
 * @author: Peng
 * @create: 2021-02-21  09:11
 **/
public class Department extends OrganizationComponent {
    public Department(String name, String des){
        this.setDes(des);
        this.setName(name);
    }

    @Override
    public String getDes() {
        return super.getDes();
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    protected void print() {
        System.out.println(this.getName());
    }
}
